Skip to content

Conversation

Dan-Flores
Copy link
Contributor

No description provided.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 1, 2025
err == cudaSuccess,
"cudaStreamGetFlags failed: ",
cudaGetErrorString(err));
return nppCtxPtr;
Copy link
Member

@NicolasHug NicolasHug Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I think this is the problem: we're returning a pointer to nppCtx, which was allocated on the stack, not on the heap. So the pointer's value (and what it points to) is only valid within the createNppStreamContext function, not after it returns.

@Dan-Flores Dan-Flores closed this Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants